package com.ruoyi.pos.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * exchang_item对象 _exchange_item
 * 
 * @author wzh
 * @date 2021-05-21
 */
public class ExchangeItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id标识 */
    private Long id;

    /** 换货订单id */
    @Excel(name = "换货订单id")
    private Long exchangeId;

    /** 换货的商品条形码 */
    @Excel(name = "换货的商品条形码")
    private String itemCode;

    /** 换货数量 */
    @Excel(name = "换货数量")
    private Integer quantity;


    /** 换货理由 */
    @Excel(name = "换货理由")
    private String reason;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExchangeId(Long exchangeId) 
    {
        this.exchangeId = exchangeId;
    }

    public Long getExchangeId() 
    {
        return exchangeId;
    }
    public void setItemCode(String itemCode) 
    {
        this.itemCode = itemCode;
    }

    public String getItemCode() 
    {
        return itemCode;
    }
    public void setQuantity(Integer quantity) 
    {
        this.quantity = quantity;
    }

    public Integer getQuantity() 
    {
        return quantity;
    }

    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("exchangeId", getExchangeId())
            .append("itemCode", getItemCode())
            .append("quantity", getQuantity())
            .append("reason", getReason())
            .toString();
    }
}
